import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'base_knife' })
export default class BaseKnife extends BaseEntity {
  @Column({ type: 'varchar', unique: true, length: 50, name: 'knife_code', comment: '刀模编码' })
  @ApiProperty()
  knifeCode: string;

  @Column({ type: 'varchar', length: 100, name: 'knife_name', comment: '刀模名称' })
  @ApiProperty()
  knifeName: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
